{
  "properties" : { },
  "id" : "908438df4330469cabf6fc327ffd6565",
  "script" : null,
  "groupId" : "43da313fdeaa495798cf783e6cf83479",
  "name" : "新设备同步至ip资源管理",
  "createTime" : 1727070853476,
  "updateTime" : 1726019321616,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "synchronizingEquipmentIp",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : null,
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
  import java.util.stream.Collectors
  List listAllDeviceIp = db.table("ndmp_device").column("ip").select();

  //查询未使用ip    
  List listIp = db.table("ndmp_ip_source_manager").column("ip").where().eq("usage_status", 0).select();

  List listIpUsed = listAllDeviceIp.stream().filter(listIp::contains).collect(Collectors.toList());

  if (!CollectionUtil.isEmpty(listIpUsed)) {
      db.update("""
       update  ndmp_ip_source_manager   set usage_Status=1,allocation_Status=1 where ip in
        <foreach collection="listIpUsed" index="index" item="ip" open="(" close=")" separator=",">
          #{ip}
        </foreach>
     """);
  }

  return true;